/**
 * Called before the form component is rendered.
 *
 * @param {JSRenderEvent} event the render event
 *
 * @private
 *
 * @properties={typeid:24,uuid:"47B6C6CC-327F-4105-9AF2-51ED4477A49D"}
 */
function onRender(event) {

	/** @type {JSRecord<db:/pigeon_board/adm_t900_usuarios>} */
	var record = event.getRecord();
	
	if (record && record.b_es_super_adm == 1) {
		event.getRenderable().fgcolor = 'red';
	} else if (record && record.b_es_adm){
		event.getRenderable().fgcolor = 'blue';
	}else{
		event.getRenderable().fgcolor = '#808080';
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"E63D98EA-4378-4054-85AD-375FE1FBF089"}
 */
function alta(event) {
	
	scopes.adm_t900_usuarios.alta(event,null,null,null);
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"FF16587F-F2F4-4DBB-9C83-14EF36B65861"}
 */
function eliminar(event) {

}
